package group.program.Config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;
@Setter
@Getter
@Configuration
public class DatabaseConfig {
    private List<String> Names = new ArrayList<>();
    private List<String> Urls = new ArrayList<>();
    private List<String> Usernames = new ArrayList<>();
    private List<String> Passwords = new ArrayList<>();
    public void addName(String name) {
        Names.add(name);
    }

    public void addUrl(String url) {
        Urls.add(url);
    }

    public void addUsername(String username) {
        Usernames.add(username);
    }

    public void addPassword(String password) {
        Passwords.add(password);
    }
    public void removeName(String name) {
        Names.remove(name);
    }

    public void removeUrl(String url) {
        Urls.remove(url);
    }

    public void removeUsername(String username) {
        Usernames.remove(username);
    }

    public void removePassword(String password) {
        Passwords.remove(password);
    }
}
